/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Monopol.Events;

import GUI.GameLoadWindowPackage.GameLoaderFrame;
import java.util.TimerTask;
import javax.swing.SwingUtilities;
/**
 *
 * @author Noa
 */
public class RefreshMonopolyGames extends TimerTask {
    private GameLoaderFrame gamePanel;

    public RefreshMonopolyGames(GameLoaderFrame gameLoader){
        gamePanel = gameLoader;
    }

      @Override
    public void run() {
       
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    gamePanel.getMonopolyGames();
                }
            });
        }
}
